<?php
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of Poklon
 *
 * @author Bojan
 */
class Poklon {
    var $naziv;
    var $cena;
    var $brPluseva;
    var $brMinusa;

    public function Poklon($naziv, $cena) {
        $this->naziv = $naziv;
        $this->cena = $cena;
        $this->brMinusa = $this->brPluseva = 0;
    }

    public function dohvatiNaziv() 
    {
        return $this->naziv;
    }

    public function dohvatiCenu()
    {
        return $this->cena;
    }

    public function dohvatiPluseve()
    {
        return $this->brPluseva;
    }

    public function dohvatiMinuse()
    {
        return $this->brMinusa;
    }

    public function dodajPlus()
    {
        $this->brPluseva++;
    }

    public function dodajMinus()
    {
        $this->brMinusa++;
    }

    public function dohvatiOcenu()
    {
        return $this->brPluseva - $this->brMinusa;
    }

    public function promeniNaziv($noviNaziv)
    {
        $this->naziv = $noviNaziv;
    }

    public function promeniCenu($novaCena)
    {
        $this->cena = $novaCena;
    }
}
?>
